package cn.koala.key.common.enums;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 枚举k,v定义
 *
 * @author liutao
 * @date 2021/1/18
 */
public class EnumKeyValue {
    @JSONField(name = "value")
    private Integer code;
    @JSONField(name = "description")
    private String caption;

    public EnumKeyValue() {
    }

    public EnumKeyValue(Integer code, String caption) {
        this.code = code;
        this.caption = caption;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getCaption() {
        return caption;
    }

    public void setCaption(String caption) {
        this.caption = caption;
    }

    @Override
    public String toString() {
        return "EnumKeyValue{" +
                "code=" + code +
                ", caption='" + caption + '\'' +
                '}';
    }
}
